<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="container">
<div class="jumbotron" style="margin-top:20px;">

                    <h2 class="road_title">提示信息</h2>
                    <div class="row" style="margin-left:0px;">
                        <?php echo $message;?>
                    </div>
<?php
if($url){
?>
<div class="alert alert-success" role="alert" style="margin-top:25px;">
<span id="time">5秒钟后自动跳转</span>
</div>

<script>
	function myClose(){	
        var n=parseInt(time.innerHTML);
        n-=1;
        if(n>0){
            time.innerHTML=n+"秒钟后自动跳转";
            timer=setTimeout(arguments.callee,1000);
        }else{
            window.location.href='<?php echo $url;?>';
        }
	}
	var timer=null;
	window.onload=function(){
		timer=setTimeout(myClose,1000);
	}
</script>
<?php
}
else
{
    echo '<div class="alert alert-danger" role="alert">'.$errormsg.'</div>';
}
?>
                    

</div>
</div>